#!/bin/bash

# Builds for a KrisLibrary-based RobotSim python binding
# call with argument "su" if you need adminstrative privileges to install the lib

sh autogen.sh
CPPFLAGS="-fPIC" CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --with-trimesh=gimpact
make
if [ "$#" -ge 1 -a "$1" = "su" ]
	then
		sudo make install
	else
		make install
fi